import { createSlice } from "@reduxjs/toolkit";

const dictSlice = createSlice({
  name: "dict",
  initialState: {
    dataGender: [],
    dataRegister: [],
    memberState: [],
    wxState: [],
  },
  reducers: {
    setDict(state, action) {
      return action.payload;
    },
  },
});

export const { setDict } = dictSlice.actions;
export default dictSlice.reducer;
